package nc.ui.pn.goodslist;

import java.awt.Container;

import nc.ui.bill.yll.pub.refDlg.YllBillQueryDlg;
import nc.ui.pn.pub.PlanPubHelper;
import nc.ui.pub.ClientEnvironment;
import nc.ui.pub.beans.UIPanel;
import nc.vo.pn.deal.PlanApplyInforVO;
import nc.vo.pub.lang.UFBoolean;

/**
 * @author yf
 */
public class ClientUIQueryDlg extends YllBillQueryDlg {

	private PlanApplyInforVO infor = null;

	public ClientUIQueryDlg(Container parent, UIPanel normalPnl,
			String pk_corp, String moduleCode, String operator,
			String busiType, String nodeKey) {
		super(parent, normalPnl, pk_corp, moduleCode, operator, busiType,
				nodeKey);
		PlanApplyInforVO appInfor =getappInfor();
		if(appInfor!=null)
			setDefaultValue("pn_orgcompare.pk_calbody",appInfor.getCreqcalbodyid(), appInfor.getCreqcalbodyid());
	}

	private PlanApplyInforVO getappInfor() {
		if(infor == null){
			String sLogCorp = ClientEnvironment.getInstance().getCorporation().getPrimaryKey();
			String sLogUser = ClientEnvironment.getInstance().getUser().getPrimaryKey();
			try {
				infor = PlanPubHelper.getAppInfor(sLogCorp, sLogUser, UFBoolean.FALSE);
			} catch (Exception e) {
				e.printStackTrace();
				return null;
			}
		}
		return infor;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 5501803825243796705L;

	public void initData(String pkCorp, String operator, String funNode,
			String businessType, String currentBillType, String sourceBilltype,
			String nodeKey, Object userObj) throws Exception {

	}

}
